<?php
session_start();
if(!$_SESSION['username'])
 	{
 		header('Location:login.html');	
 	}
require('config/conn.php');
$aid = $_GET['aid'];
$res = mysql_query("select * from article where aid = '$aid'");
 $row = mysql_fetch_array($res);	
 $title = $row['title'];
 $section = $row['section'];
 $addTime = $row['addtime'];
 $content = $row['content'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link type="text/css" rel="stylesheet" href="styles/pdeditor.css" />
	<link type="text/css" rel="stylesheet" href="styles/pddetail.css" />
	<title>文章内容</title>
</head>
<body>
 	<div  id="pddetail">
	 	<div style="height:40px;text-align:right;">
			<?php
		 		echo "<b>$_SESSION[username]</b>",'&nbsp;&nbsp;<a href="my_articles.php">我的帖子</a>&nbsp;&nbsp;<a href="all_articles.php">全部帖子</a>&nbsp;&nbsp;<a href="index.php">返回</a>&nbsp;&nbsp;<a href="logout.php">退出</a>';
			?>	
		</div>
		<div class="detail">
			<?php
		 		echo "<h2>$title</h2>","<p class='section_time'>板块：$section &nbsp;&nbsp;发表时间：$addTime</p>";
		 		echo "<div class='content'>$content</div>";
			?>
		</div>		
	</div>
</body>
</html>